const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  username: state => state.user.userInfo.username, // 建立用户名称的映射
  userId: state => state.user.userInfo.userId, // 建立用户id的映射
  routes: state => state.permission.routes ,// 导出当前的路由
  visitedViews: state => state.tagsView.visitedViews, //访问过的
  cachedViews: state => state.tagsView.cachedViews,  //缓存
}
export default getters
